package com.wk1un2.service;

import java.util.List;
import java.util.Map;

import com.wk1un2.entity.Product;
import com.wk1un2.entity.ProductCategory;
import com.wk1un2.util.Result;

public interface ProductService {
	// 获取所有商品分类的信息
	// 返回所有分类集
	public List<Product> getAll(int page, int limit, String p_name, Integer p_state);

	public List<Map<String, Object>> getProduct(Integer p_id);

	public Integer count();

	public Integer add(Map<String, Object> map);

	public Integer update(Map<String, Object> map);

	public Result updateproductstate(Integer p_id, Integer p_state);

	public Integer delete(int p_id);
}